/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package team11;

/**
 * 目标函数实现类 定义神经网络要逼近的数学函数 z = x² + y
 *
 * @author 朱婧雯
 */
public class TargetFunction implements Func {

    @Override
    public double getValue(double x, double y) {
        return x * x + y; // z = x² + y
    }
}
